home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5541 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  38 lines

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: RETURN ();
  5. Date: 09 Feb 1996 04:33:21 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb8213321@qcd.lanl.gov>
  8. References: <DMFxxq.7M7@emi.net> <4fc6ve$kbn@s02.pavilion.co.uk>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: AJRobb@pavilion.co.uk's message of Thu, 08 Feb 1996 06:59:40 GMT
  13.  
  14. In article <4fc6ve$kbn@s02.pavilion.co.uk> AJRobb@pavilion.co.uk (Andy
  15. J Robb) writes: 
  16. <snip>
  17.    >int main(void)
  18.  
  19.    main(int, char**)    /* This says "ignore the command line" */
  20. <snip>
  21.    main(int, char**)
  22.    { int x, y, z;
  23.  
  24. If you post to comp.lang.c, please post C. A conformant C compiler
  25. must diagnose the above.
  26.  
  27. int main(void) is the correct way to "ignore the command line".
  28.  
  29. Cheers
  30. Tanmoy
  31. --
  32. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  33. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  34. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  35. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  36. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  37. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  38.